package com.example.rabbitmqstudy.config;


import org.springframework.amqp.core.Queue;
import org.springframework.beans.factory.parsing.QualifierEntry;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.example.rabbitmqstudy.constant.RabbitConstant;

/**
 * @author admin
 * @date 2021/07/14 10:42
 */
@Configuration
public class RabbitProvider {

    @Bean
    public Queue simpleQueue(){
        return new Queue(RabbitConstant.SIMPLE_QUEUE_NAME);
    }

    @Bean
    public Queue workQueue(){
        return new Queue(RabbitConstant.WORK_QUEUE_NAME);
    }


}
